package com.wengcheng.pay;

import com.alibaba.dubbo.common.utils.NetUtils;
import com.wengcheng.order.DoOrderRequest;
import org.springframework.stereotype.Service;

/**
 * Created by adengdeng on 2017/8/22
 */
@Service("payService")
public class PayServiceImpl implements IPayService {

    public boolean doPay(DoOrderRequest order) {

        System.out.println(NetUtils.getLocalAddress());

        System.out.println(Thread.currentThread().getName() + "支付服务被调用：" + order.getName());

        return true;
    }
}
